#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int month = 1, type = 1, price = 4000;
	float total = 0;

	if ((month >= 5) && (month <= 10))
	{
		if (type == 1)
		{
			total = price * 0.9;
			printf("the total is:%f\n", total);
		}
		else
		{
			total = price * 0.75;
			printf("the total is:%f\n", total);
		}
	}
	else
	{
		if (type == 1)
		{
			total = price * 0.6;
			printf("the total is:%f\n", total);
		}
		else
		{
			total = price * 0.3;
			printf("the total is:%f\n", total);
		}
	}
	return 0;
}